Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 3 - QuickDraw 3D Objects / QuickDraw 3D Objects Reference
Application-Defined Routines /


TQ3ElementCopyDuplicateMethod

You can define a method to copy the data of your custom element type when an element of that type is in a set being duplicated.

typedef TQ3Status (*TQ3ElementCopyDuplicateMethod) (
const void *fromInternalElement, 
void *toInternalElement);
fromInternalElement
A pointer to the element data associated with an element having your custom element type.
toInternalElement
On entry, a pointer to an empty, zeroed block of memory large enough to contain the element data associated with an element having your custom element type.
DESCRIPTION
Your TQ3ElementCopyDuplicateMethod function should copy the element data pointed to by the fromInternalElement parameter into the location pointed to by the toInternalElement parameter. This method is called whenever the Q3Object_Duplicate function is used to duplicate a set or an attribute set that contains an element of your custom type.

RESULT CODES
Your TQ3ElementCopyDuplicateMethod function should return kQ3Success if it is successful and kQ3Failure otherwise.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996